﻿using UnityEngine;
using System.Collections;

public class DisableSelf : MonoBehaviour {
	private LineRenderer my;
	private int counter=0;
	// Use this for initialization
	void Start () {
		my=this.GetComponent<LineRenderer>();
	}
	
	// Update is called once per frame
	void Update () {
		if(my.enabled && counter++>5){
			my.enabled=false;
			counter=0;
		}
	}
}
